/*
 * @Descripttion: 
 * @version: V1.0.0
 * @Author: LeonHe
 * @Date: 2021-10-17 01:22:59
 * @LastEditTime: 2021-10-17 02:22:23
 */

#ifndef __KEY_H_ 
#define __KEY_H_

#include "stm8s.h"

typedef struct
{
    uint8_t pressed:1;
    uint8_t longPressed:1;
    uint8_t rsv:6;
}stKeyEvenDef;

extern stKeyEvenDef gStKeyEvent[6];

void keyInit(void);
void keyScan(void);

#endif

